package demo1;

public class Car {
    private Tire tire = new Tire();
    private Body body = new Body();

    public Tire getTire() {
        return tire;
    }

    public void setTire(Tire tire) {
        this.tire = tire;
    }

    public Body getBody() {
        return body;
    }

    public void setBody(Body body) {
        this.body = body;
    }
}
class Tesla extends Car {
    public double price;
}